package demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import demo.entity.Section;

public interface SectionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Section record);

    int insertSelective(Section record);

    Section selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Section record);

    int updateByPrimaryKey(Section record);
    //查询全部组织架构
    List<Section>findAll();
    
    //根据编号查询上级编号
    List<Section> findSuperioridByid(@Param("id")Integer id);
}